import http from '@/utils/http/axios'
import { RequestEnum } from '@/enums/httpEnum'


// '/ds/screen/courseDetail':getCourseDetail,
// '/ds/screen/evaluateDetail':getEvaluateDetail,
// '/ds/screen/evaluateSubmit':setEvaluate
// 获取视频详情
export function getVideoDetail(params) {
  return http.request(
    {
      url: `/ds/screen/course/detail`,
      method: RequestEnum.POST,
      params
    }
  )
}
// 获取评课数据
export function getEvaluateDetail(params) {
  return http.request(
    {
      url: `/ds/screen/evaluate/detail`,
      method: RequestEnum.POST,
      params
    }
  )
}

// 提交评课数据
export function setEvaluate(params) {
  return http.request(
    {
      url: `/ds/screen/evaluate/submit`,
      method: RequestEnum.POST,
      params
    },
    {
      successMessageText: '评价成功'
    }
  )
}
